package org.zjx.data.screen;

import org.zjx.command.entity.screen.Room;
import org.zjx.data.BaseSceneBuilder;

import java.awt.*;

public class ZhuZiGuoSceneBuilder extends BaseSceneBuilder {

    @Override
    protected String getSceneName() {
        return "朱紫国";
    }

    @Override
    protected Dimension getSceneSize() {
        return new Dimension(191, 119);
    }

    @Override
    protected void addMonsters() {

    }

    @Override
    protected void addNpcs() {
        addNpc("朱紫校尉", new Point(139, 99));
        addNpc("朱紫侍卫", new Point(81, 11));
        addNpc("朱紫侍卫", new Point(22, 4));
        addNpc("紫阳药师", new Point(145, 37));
        addNpc("药店伙计", new Point(127, 23));
        addNpc("酒店伙计", new Point(34, 38));
        addNpc("超级巫医", new Point(8, 88));
        addNpc("申太公", new Point(74, 14));
        addNpc("端木娘子", new Point(97, 7));
        addNpc("豆蔻囡囡", new Point(150, 6));
        addNpc("小囝囝", new Point(153, 4));
        addNpc("驿站老板", new Point(60, 43));
        addNpc("驿站老板", new Point(140, 94));
    }

    @Override
    protected void addRooms() {
        Room zhuZiPalace = createRoom("朱紫皇宫", new Dimension(95, 71));
        addNpcToRoom(zhuZiPalace, "朱紫国王", new Point(67, 34));
        addNpcToRoom(zhuZiPalace, "阿米国师", new Point(55, 34));
        rooms.add(zhuZiPalace);
    }

    @Override
    protected void addTeleports() {
        addSceneTeleport(new Point(7, 4), "大唐境外", new Point(7, 62), new Point(2, 2));
        addSceneTeleport(new Point(153, 11), "丝绸之路", new Point(306, 89), new Point(156, 3));
        addSceneTeleport(new Point(8, 110), "麒麟山", new Point(179, 3), new Point(2, 113));
        addSceneTeleport(new Point(131, 115), "解阳山", new Point(89, 5), new Point(134, 115));

        addNpcTeleport("驿站老板", new Point(60, 43), "西梁女国", new Point(15, 11), new Point(57, 43));
        addRoomTeleport(new Point(140, 94), "朱紫皇宫", new Point(67, 16), new Point(149, 100));
    }

    public static void main(String[] args) {
        new ZhuZiGuoSceneBuilder().execute("zhuziguo_scene.json", "朱紫国");
    }
}